import {fromJS} from 'immutable'

const defaultState = fromJS({
  status: 0
})

export default (state = defaultState, action) => {
  switch (action.type) {
    case 'USER_INFO':
      return state.merge(action.value)
    default:
      return state
  }
}